#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>

#include "simcom.h"


void main_handle(unsigned char state);
void task_succ_hand(unsigned char state);

int main(void)
{
  reg_module_func(main_handle);
  API_1();

  API_2(true,task_succ_hand);

  while(1)
  {
    API_2(false,task_succ_hand);
  }

  return 0;
}


void main_handle(unsigned char state)
{
  if(state == 1)
  {
    printf("设置成功 <%s>\r\n", __func__);
  }
}

void task_succ_hand(unsigned char state)
{
  if(state == 1)
  {
    printf("检测到任务执行完成... <%s>\r\n", __func__);
  }
}
